<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://mamsy.ru/" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>

</tbody></table>
</body>
</html>
<!--mamsy.ru/landing/mail/1-->
<tr>
	<td>open</td>
	<td>http://mamsy.ru/</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;logout&quot;)==true){&quot;exit&quot;} else {nextMove=&quot;landing&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>landing</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/mail/1</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=name</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input[type=&quot;image&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Клуб распродаж товаров для мам, детей и малышей.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=name</td>
	<td>1q1</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;image&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/mail/1</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input[type=&quot;image&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=name</td>
	<td>qwertyuiop</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;image&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name=Password</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Mail.Ru</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Неверное имя пользователя или пароль</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;logout&quot;)==true){&quot;exit&quot;} else {nextMove=&quot;landing&quot;}</td>
	<td></td>
</tr>
<!--mamsy.ru/landing/welcome/index/-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;logout&quot;)==true){&quot;exit1&quot;} else {nextMove=&quot;landing1&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit1</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>landing1</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/welcome/index/</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=input-register_email</td>
	<td></td>
</tr>
<tr>
	<td>waitForText</td>
	<td>id=input-register_name</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=i.photo__frame</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>0</td>
	<td>i</td>
</tr>
<tr>
	<td>label</td>
	<td>refresh_page</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>storeText</td>
	<td>//body/table/tbody/tr[2]/td/div/div[2]/div[2]/span</td>
	<td>photo__price</td>
</tr>
<tr>
	<td>echo</td>
	<td>${photo__price}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['photo__price'].replace(' руб.','')</td>
	<td>photo__price</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>storedVars['photo__price'].replace(' ','')</td>
	<td>photo__price</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['photo__price'] &lt;= 0 ) {alert('&lt;= 0')} else {}</td>
	<td></td>
</tr>
<tr>
	<td>refreshAndWait</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=i.photo__frame</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>css=i.photo__frame</td>
	<td></td>
</tr>
<tr>
	<td>while</td>
	<td>${i} &lt; 10</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${i}+1</td>
	<td>i</td>
</tr>
<tr>
	<td>echo</td>
	<td>${i}</td>
	<td></td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>refresh_page</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>- Введите имя<br />- Введите email<br />- Введите пароль</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_email</td>
	<td>schoolout.2@mail.ru</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_pass</td>
	<td>1q2w3e4r5t</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_name</td>
	<td>tt</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=registerMessages</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_email</td>
	<td>schoolout.2@mail.ru</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_pass</td>
	<td>1q2w3e4r5t</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_name</td>
	<td>tt</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>Math.floor(Math.random()* 1000000000000000000)</td>
	<td>random_mail_login</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${random_mail_login} + '@mail.ru'</td>
	<td>random_mail_login</td>
</tr>
<tr>
	<td>echo</td>
	<td>${random_mail_login}</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_email</td>
	<td>${random_mail_login}</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_name</td>
	<td>tt</td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_pass</td>
	<td>1q2w3e4r5t</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=span.logo</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=h1.title</td>
	<td>Клуб распродаж товаров <br />для мам, детей и малышей.</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=span.logo</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/vkontakte/1</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=span.button_vk</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/vkontakte/2</td>
	<td></td>
</tr>
<tr>
	<td>storeElementPresent</td>
	<td>css=span.mm-game__title__text</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-10</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-8</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-6</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-5</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-2</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/vkontakte/3</td>
	<td></td>
</tr>
<tr>
	<td>storeElementPresent</td>
	<td>css=span.mm-game__title__text</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-10</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-8</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-6</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-5</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-2</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://mamsy.ru/landing/vkontakte/4</td>
	<td></td>
</tr>
<tr>
	<td>storeElementPresent</td>
	<td>css=span.mm-game__title__text</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-10</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-8</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-6</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-5</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=c-2</td>
	<td></td>
</tr>
